package com.itheima.demo4_继承的访问规则.p04私有内容;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        System.out.println(zi.getNum());
        zi.method2();
    }
}
class Fu{
    private int num = 10;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
    private void method(){
        System.out.println("Fu method");
    }

    public void method2(){
        method();
    }
}

class Zi extends Fu{
    public void show(){
        System.out.println(getNum());
        method2();
    }
}